-- GENERATED SPELL FOR [Silverbrook Trapper] --


function spell0_26679(pUnit, Event) --@Hooked Net,n/a--
pUnit:FullCastSpellOnTarget(13608,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26679', 4500, 1)
end

function spell1_26679(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26679', 555, 1)
end

function Sorts_26679(pUnit, Event)
local choix_sorts_26679 = math.random(0, 1)
if choix_sorts_26679 == 0 then
pUnit:RegisterEvent('spell0_26679', 1, 1)
end
if choix_sorts_26679 == 1 then
pUnit:RegisterEvent('spell1_26679', 1, 1)
end
end

function mob26679_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26679', math.random(1500, 3000), 1)
end

function mob26679_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26679_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26679_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26679, 1, 'mob26679_Action')
RegisterUnitEvent(26679, 2, 'mob26679_Leave')
RegisterUnitEvent(26679, 3, 'mob26679_Kill')
RegisterUnitEvent(26679, 4, 'mob26679_Die')
